@extends('Layout/layout')

@section('yemian')
<body class="mian_bj">
<div class="mian_top_01">
<div class="mian_top_r"></div>
<div class="mian_top_l"></div>
<div class="mian_top_c">
<ul>
<li><a href="{{ url('/group') }}"><p>分组管理</p></a></li>

<li><a href="{{ url('/cate') }}"><p>菜单管理</p></a></li>
</ul>
</div>
@if (count($errors) > 0)
    <div style="color: red;background-color: #c1c1c1;border-color: #d6e9c6;float:left;margin-top:10px;margin-bottom:10px;width:100%;">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
<div class="mian_b">
<form action="{{url('/cate/insert')}}" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg_xz">
<tr>
<td width="5%" class="mian_b_bg_lm">&nbsp;</td>
<td colspan="3" class="mian_b_bg_lm">添加菜单</td>
</tr>
<tr>
<td>&nbsp;</td>
<td width="7%" valign="top">所属分组：</td>
<td width="60%">
<select id="selectone" style="width: 125px" name="ClassId">
@foreach($res as $k => $v)
<option value="{{ $v['ClassId'] }}">{{ $v['ClassName'] }}</option>
@endforeach
</select>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td valign="top">菜单名称：</td>
<td>
<input type="text" class="input_01" name="CateName" id="textfield"></td>
<td>&nbsp;</td>
</tr>

<tr>
<td>&nbsp;</td>
<td valign="top">备&nbsp;&nbsp;注：</td>
<td>
<input type="text" class="input_01" name="Remark" id="textfield"></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
{{csrf_field()}}
<td>
<div align="center"><input type="image" src="/public/images/bnt_03.gif" style="margin-right:10px;" width="80" height="22">
</div>
</td>
<td>&nbsp;</td>
</tr>

</table>
</form>
</div>
</div>
</body>

@endsection